package com.example.controller;

import com.example.entity.DishFlavor;
import com.example.service.DishFlavorService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * 菜品口味关系表(DishFlavor)表控制层
 *
 * @author makejava
 * @since 2022-05-24 16:11:53
 */
@RestController
@RequestMapping("dishFlavor")
public class DishFlavorController {
    /**
     * 服务对象
     */
    @Resource
    private DishFlavorService dishFlavorService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("selectOne")
    public DishFlavor selectOne(Long id) {
        return this.dishFlavorService.queryById(id);
    }

}